<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>

<?php 
	$records = $this->escort_news_entity->getArticle($cat_name);
    if(empty($records)){
        show_404();
    }
?>

<div class="home-escort-list">
	<div class="dashboard-info-wrapper">
		<?php foreach($records as $item):?>
			<div class="news-title">
				<?php echo $item->title;?>
			</div>
			<div class="news-content">
				<?php echo $item->news;?>
			</div>
		<?php endforeach;?>
	</div> 
	
</div>

<div class="bottom-content-wrapper">
	<?php $this->load->view('banner/bottom_banner',array('pos'=>'news') ); ?>
</div>